Modification start date
[BattleCats.git] / Assets / Scripts / UI Scripts / FindMenuManager.cs
blob81f0175311ab0bf7ca3f1dbb0fca7c6f9e2ccdad
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEngine.UI;
6 public class FindMenuManager : MonoBehaviour {
8 private GameObject menuManager;
9 private MenuManager menuManagerScript;
12 void Awake(){
15 // Use this for initialization
16 void Start () {
17 menuManager = GameObject.FindGameObjectWithTag ("MenuManager");
18 menuManagerScript = menuManager.GetComponent<MenuManager> ();
21 // Update is called once per frame
22 void Update () {
26 public void GoToMainMenu()
28 menuManagerScript.GoToMainMenu ();
31 public void GoToLevelSelection()
33 menuManagerScript.GoToLevelSelection ();
36 public void GoToCharacterSelection ()
38 menuManagerScript.GoToCharacterSelection ();
41 public void GoToSettings()
43 menuManagerScript.GoToSettings ();
46 public void GoToCredits()
48 menuManagerScript.GoToCredits ();
51 public void GoToInstructions ()
53 menuManagerScript.GoToInstructions ();
56 public void GoToExit()
58 menuManagerScript.StopMenuMusic ();
59 menuManagerScript.ExitGame ();
63 public void SetMasterVolume(Slider slider){
64 menuManagerScript.UpdateMasterValue (slider);
67 public void SetAmbientVolume(Slider slider)
69 menuManagerScript.UpdateAmbientValue (slider);
72 public void SetSFXVolume(Slider slider)
74 menuManagerScript.UpdateSFXValue (slider);